package com.whuan.student.dataObject;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Data
public class User {
    /**
     * create by: whaun
     * create date:  2019/5/19 time:10:58
     * description: 用户ID，由系统自动生成
     */
    @Id
    @Column(name="id")
    private String userId;

    @Column(name="name")
    private String userName;

    @Column(name="password")
    private String userPassword;
    /**
     * 用户权限
     */
    @Column(name="roles")
    private String roles;
    /**
     * 用户描述
     */
    @Column(name="introduction")
    private String introduction;
    /**
     * 用户头像地址
     */
    @Column(name="avatar")
    private String avatar;
}
